//
// Created by xili on 2024/8/8 17:06.
// Go big or go home.
//
#include <vector>

using namespace std;

class Solution {
public:
    bool isCovered(vector<vector<int>> &ranges, int left, int right) {
        vector<int> v(52, 0);
        for (auto item: ranges) {
            for (int i = item[0]; i <= item[1]; i++) {
                v[i]++;
            }
        }
        for (int i = left; i <= right; i++) {
            if (!v[i]) {
                return false;
            }
        }
        return true;
    }
};